<template>
  <div id="app" class="app-box">
    
    <router-view />
  </div>
</template>

<script>
import { removeInfo } from '@/utils/storage'
export default {
  methods: {
    
  },
  mounted() {
    // 监听网页关闭
    window.addEventListener('unload', e => { this.unloadHandler(e) })
  },
  methods: {
    unloadHandler(e) {
      removeInfo('loginInfo'); // 清理浏览器缓存
      removeInfo('menuList'); // 清理浏览器缓存
    }
  }
}
</script>
<style></style>
